//
//  MGHorizontalScrollView.m
//  Express
//
//  Created by lhongl on 2025/9/26.
//  Copyright © 2025 QM. All rights reserved.
//

#import "MGHorizontalScrollView.h"
#import <Masonry/Masonry.h>
@implementation MGHorizontalScrollView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.showsVerticalScrollIndicator = NO;
        [self setScrollerUpView];
    }
    return self;
}

#pragma mark UI
- (void)setScrollerUpView{
    [self addSubview:self.contentView];
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self);
        make.width.mas_equalTo(self);
    }];
}


#pragma mark 懒加载
- (UIView *)contentView{
    if (!_contentView) {
        _contentView = [[UIView alloc] init];
    }
    return _contentView;
}

@end
